package com.ruizhong.centercontroll.util;

import java.io.Serializable;

public class KeyInfo implements Serializable {
    private static final long serialVersionUID = 7217401992634321193L;

    private int event;

    private int key_code;

    private String word;

    private String system = "ipad";

    private String type = "key";

    private double x;

    private double y;

    private double fitWidth;

    private double fitHeight;

    private double scale;

    private double left;

    private double top;

    private int id;

    private int screenWidth;

    private int screenHeight;

    public void setScreenWidth(int screenWidth) {
        this.screenWidth = screenWidth;
    }

    public void setScreenHeight(int screenHeight) {
        this.screenHeight = screenHeight;
    }

    public int getScreenWidth() {
        return this.screenWidth;
    }

    public int getScreenHeight() {
        return this.screenHeight;
    }

    public KeyInfo(int event, int key_code) {
        this.system = "PC";
        this.event = event;
        this.key_code = key_code;
    }

    public void setX(double x) {
        this.x = x;
    }

    public void setY(double y) {
        this.y = y;
    }

    public void setFitHeight(double fitHeight) {
        this.fitHeight = fitHeight;
    }

    public void setFitWidth(double fitWidth) {
        this.fitWidth = fitWidth;
    }

    public KeyInfo(String type, int id, String word) {
        this.type = type;
        this.id = id;
        this.word = word;
    }

    public KeyInfo(String type, int id, double x, double y, double fitWidth, double fitHeight, double left, double top, double scale, int screenWidth, int screenHeight) {
        this.type = type;
        this.id = id;
        this.x = x;
        this.y = y;
        this.fitWidth = fitWidth;
        this.fitHeight = fitHeight;
        this.left = left;
        this.top = top;
        this.scale = scale;
        this.screenWidth = screenWidth;
        this.screenHeight = screenHeight;
    }

    public void setLeft(double left) {
        this.left = left;
    }

    public double getLeft() {
        return this.left;
    }

    public void setTop(double top) {
        this.top = top;
    }

    public double getTop() {
        return this.top;
    }

    public void setScale(double scale) {
        this.scale = scale;
    }

    public double getScale() {
        return this.scale;
    }

    public int getEvent() {
        return this.event;
    }

    public void setEvent(int event) {
        this.event = event;
    }

    public int getKey_code() {
        return this.key_code;
    }

    public void setKey_code(int key_code) {
        this.key_code = key_code;
    }

    public String getWord() {
        return this.word;
    }

    public int getId() {
        return this.id;
    }

    public double getX() {
        return this.x;
    }

    public double getY() {
        return this.y;
    }

    public String getSystem() {
        return this.system;
    }

    public String getType() {
        return this.type;
    }

    public double getFitWidth() {
        return this.fitWidth;
    }

    public double getFitHeight() {
        return this.fitHeight;
    }
}
